package com.zly.entity;

import com.zly.entity.block.DynamicBlock;
import com.zly.entity.enums.SegmentType;

public class DynamicSegment {

    //描述Segment的元数据
    private final SegmentType segmentType;

    //若Segment持有的Block数组
    private final DynamicBlock[] blockArray;

    //构造
    public DynamicSegment(SegmentType segmentType, DynamicBlock[] blockArray) {
        this.segmentType = segmentType;
        this.blockArray = blockArray;
    }

    //getter
    public SegmentType getSegmentType() {
        return this.segmentType;
    }

    public DynamicBlock[] getBlockArray() {
        return blockArray;
    }



}
